package com.dyzs.util;

import java.io.InputStream;
import java.util.Properties;


public final class ReadProperties {

	private static final Properties properties;

	static {
		properties = new Properties();
		InputStream stream =
			ReadProperties.class.getResourceAsStream("/set.properties");
		try {
			properties.load(stream);
		} catch (Exception e) {

		}
		properties.putAll(System.getProperties());
	}	
	public static String getPropertyByStr(String propertyName) {
		return String.valueOf(ReadProperties.properties.get(propertyName));
	}
	
}
